package com.atguigu.springcloud.service;

import org.springframework.stereotype.Component;

/**
 * @author xiangdd
 * @since 2021/12/17
 */

@Component
public class PaymentFallbackService implements PaymentHystrixService {
    @Override
    public String paymentInfo_OK(long id) {
        return "PaymentFallbackService  fall back paymentInfo_OK, id = " + id;
    }

    @Override
    public String paymentInfo_Timeout(long id) {
        return "PaymentFallbackService  fall back paymentInfo_Timeout, id = " + id;
    }
}
